
//
//  RNOLInvestMoneyFormView.m
//  RongNiuOnline
//
//  Created by apple on 2018/5/3.
//  Copyright © 2018年 rongniu. All rights reserved.
//

#import "RNOLInvestMoneyFormView.h"

@interface RNOLInvestMoneyFormView ()
//投资计划
@property (weak, nonatomic) IBOutlet UILabel *investPlanNameLabel;
//年化利率
@property (weak, nonatomic) IBOutlet UILabel *yearRateLabel;
//投资期限
@property (weak, nonatomic) IBOutlet UILabel *dueDateLimitLabel;

//剩余可投资余额
@property (weak, nonatomic) IBOutlet UILabel *enableBalanceLabel;
//账户余额
@property (weak, nonatomic) IBOutlet UILabel *balanceLabel;

//投资金额
@property (weak, nonatomic) IBOutlet UITextField *InvestMoneyTextfield;
//预期收益
@property (weak, nonatomic) IBOutlet UILabel *expectedIncomeLabel;
//优惠券
@property (weak, nonatomic) IBOutlet UILabel *couponLabel;

//预期抵扣
@property (weak, nonatomic) IBOutlet UILabel *expectedDiscountLabel;
//可选框
@property (weak, nonatomic) IBOutlet UIButton *checkboxButton;
//协议说明文字
@property (weak, nonatomic) IBOutlet UILabel *protocolTipLabel;

@end

@implementation RNOLInvestMoneyFormView

- (IBAction)checkBoxAction:(UIButton *)sender {
    sender.selected = !sender.selected;
}

//充值
- (IBAction)clickRechargeAction:(UIButton *)sender {
    if (self.delegate && [self.delegate respondsToSelector:@selector(rechargeActionWithMoney:)]) {
        [self.delegate rechargeActionWithMoney: self.InvestMoneyTextfield.text];
    }
}

//选择优惠券
- (IBAction)selectCouponAction:(UIButton *)sender {
    if (self.delegate && [self.delegate respondsToSelector:@selector(selectCouponAction)]) {
        [self.delegate selectCouponAction];
    }
}

//全下: 余额全投
- (IBAction)allDownAction:(UIButton *)sender {
    if (self.delegate && [self.delegate respondsToSelector:@selector(allDownOrderAction)]) {
        [self.delegate allDownOrderAction];
    }
}

//立即购买
- (IBAction)buyInvestAction:(UIButton *)sender {
    if (self.delegate && [self.delegate respondsToSelector:@selector(immediatelyBuyInvestAction)]) {
        [self.delegate immediatelyBuyInvestAction];
    }
}



@end
